﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SpaceInvaders
{
    public partial class SceneControl : UserControl
    {
        BaseScene scene;
        public SceneControl()
        {
            InitializeComponent();
            scene = new MenuScene(0, 0, 1, 1, this.CreateGraphics());
            scene.AddDrawObject(new SimpleDrawObject());
        }

        protected override void OnPaint(PaintEventArgs e)
        {            
            if (scene !=null)
                scene.Redraw();
            base.OnPaint(e);
        }
    }
}
